package org.zjvis.datascience.common.graph.model;

import lombok.Getter;

@Getter
public class GraphDataCheckException extends RuntimeException{

    private static final long serialVersionUID = 6776574730641489945L;

    public GraphDataErrorCode code;

    public String info;

    public GraphDataCheckException(GraphDataErrorCode code, String info) {
        super(code.getMsg());
        this.code = code;
        this.info = info;
    }

    public GraphDataCheckException(GraphDataErrorCode code) {
        this(code, null);
    }
}
